package com.cause.entiy.user;

import java.util.Date;

public class Role {
    private Integer rid;

    private String rname;

    private Date rtime;

    private Integer rzt;

    private String rbz;

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public Date getRtime() {
        return rtime;
    }

    public void setRtime(Date rtime) {
        this.rtime = rtime;
    }

    public Integer getRzt() {
        return rzt;
    }

    public void setRzt(Integer rzt) {
        this.rzt = rzt;
    }

    public String getRbz() {
        return rbz;
    }

    public void setRbz(String rbz) {
        this.rbz = rbz;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Role other = (Role) that;
        return (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getRname() == null ? other.getRname() == null : this.getRname().equals(other.getRname()))
            && (this.getRtime() == null ? other.getRtime() == null : this.getRtime().equals(other.getRtime()))
            && (this.getRzt() == null ? other.getRzt() == null : this.getRzt().equals(other.getRzt()))
            && (this.getRbz() == null ? other.getRbz() == null : this.getRbz().equals(other.getRbz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getRname() == null) ? 0 : getRname().hashCode());
        result = prime * result + ((getRtime() == null) ? 0 : getRtime().hashCode());
        result = prime * result + ((getRzt() == null) ? 0 : getRzt().hashCode());
        result = prime * result + ((getRbz() == null) ? 0 : getRbz().hashCode());
        return result;
    }
}